<template>
  <div id="app">
    <keep-alive>
    <router-view v-slot="{ Component }">
      <component :is="Component" />
    </router-view>
  </keep-alive>
    <!-- <transition name="fade" mode="out-in"> -->
      <!-- <router-view>
        <component :is="Component" />
      </router-view> -->
    <!-- </transition> -->
    
  </div>
</template>

<script setup lang="ts">
console.log('App is starting...')
</script>

<style lang="scss">

html, body {
  overflow-x: hidden;
  position: relative;
  width: 100%;
}

#app {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #111;
}
/* 添加淡入淡出效果 */
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.3s;
}
.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #E3E6E6;
  margin: 0;
  min-height: 100vh;
}
</style> 